//
//  ReviseLoginPasswordViewController.m
//  XingMei
//
//  Created by 姚琪 on 2019/3/27.
//  Copyright © 2019年 钱金军. All rights reserved.
//

#import "RevisePayPasswordViewController.h"

@interface RevisePayPasswordViewController ()
@property(nonatomic,strong)UITextField *phoneNumberTF;
@property(nonatomic,strong)UITextField *codeTF;

@end

@implementation RevisePayPasswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavTitleText:@"修改支付密码"];
    [self content];
    // Do any additional setup after loading the view.
}
-(void)content{
    CGFloat LableHight = 49;
    float lableW = 62 + 15;
    float space = 15;
    UILabel *nickName=[[UILabel alloc]init];
    //    nickName.textAlignment = NSTextAlignmentRight;
    nickName.font=MediumFont(14);
    nickName.text=@"新密码";
    nickName.frame=CGRectMake(space, Height_NavBar +10, lableW,LableHight);
    [self.view addSubview:nickName];
    self.phoneNumberTF=[[UITextField alloc]initWithFrame:CGRectMake(nickName.right+10, nickName.yv, KScreenWidth-nickName.right-30, LableHight)];
    self.phoneNumberTF.placeholder=@"请输入新密码";
    self.phoneNumberTF.textColor = rgb_153;
    self.phoneNumberTF.font=MediumFont(14);
    self.phoneNumberTF.keyboardType = UIKeyboardTypeNamePhonePad;
    self.phoneNumberTF.textAlignment = NSTextAlignmentRight;
    [self.view addSubview:self.phoneNumberTF];
    //线
    UIView *view=[[UIView alloc]initWithFrame:CGRectMake(15, nickName.bottom, KScreenWidth - 30,0.5)];
    view.backgroundColor=rgb(232,232,232);
    [self.view addSubview:view];
    UILabel *nickName1=[[UILabel alloc]init];
    //    nickName1.textAlignment = NSTextAlignmentRight;
    nickName1.font=MediumFont(14);
    nickName1.text=@"确认密码";
    nickName1.frame=CGRectMake(space, view.bottom, lableW,LableHight);
    [self.view addSubview:nickName1];
    self.codeTF=[[UITextField alloc]initWithFrame:CGRectMake(nickName1.right+10, nickName1.yv, KScreenWidth-nickName1.right- 30, LableHight)];
    self.codeTF.placeholder=@"请再次输入密码";
    self.codeTF.textAlignment = NSTextAlignmentRight;
    self.codeTF.keyboardType = UIKeyboardTypeNamePhonePad;
    self.codeTF.font=MediumFont(14);
    self.codeTF.textColor = rgb_153;
    [self.view addSubview:self.codeTF];
    //添加一个view
    UIView *view4=[[UIView alloc]initWithFrame:CGRectMake(space, nickName1.bottom, KScreenWidth-space*2,0.5)];
    view4.backgroundColor=rgb(232,232,232);
    [self.view addSubview:view4];
    
    UIButton *OKBtn=[[UIButton alloc]initWithFrame:CGRectMake(50,KScreenHeight - Height_Indicator - 44 - 60 , KScreenWidth - 100, 44)];
    [OKBtn setTitle:@"保存" forState:UIControlStateNormal];
    OKBtn.titleLabel.font=MediumFont(18);
    [OKBtn setBackgroundImage:[UIImage imageNamed:@"affirm_img_2"] forState:0];
    OKBtn.layer.cornerRadius=5;
    OKBtn.layer.masksToBounds=YES;
    [OKBtn addTarget:self action:@selector(commintSave:) forControlEvents:UIControlEventTouchUpInside ];
    [self.view addSubview:OKBtn];
    
}
-(void)sendCord:(YanZhengMaBtn *)btn{
    [btn daoJiShi];
}
-(void)commintSave:(UIButton *)btn{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
